package ltd.hanamaki.review.basic;

import java.util.Scanner;

public class ScannerTest {


    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入数据");
        String next = scanner.nextLine();
        System.out.println(next);

        // 只要是流 就要释放资源
        scanner.close();


    }
}
